package com.devops.admin.model;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devops.admin.config.JSONTypeHandlerPg;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * ClassName DOSWebhookCustomInfo
 * Description TODO
 * Author heyabo
 * Date 2022/11/16 10:13
 * Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
@TableName("dos_webhook_custom_info")
public class DOSWebhookCustomInfo extends DOSModel{

    /**
     * webhook的id
     **/
    private Integer webhookId;
    /**
     * 集群id
     **/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String clusterIds;
    /**
     * 消息发送的模板
     **/
    @TableField(typeHandler = JSONTypeHandlerPg.class, fill = FieldFill.INSERT_UPDATE)
    private JSON msgTemplate;

    /**
     * 发送消息的过滤类型
     **/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String filterType;

    /**
     * 发送消息的格式 1：合并发送 2：单挑发送
     **/
    private Integer sendType;
}
